'''
利用代理去测试网站
http://httpbin.org/get

代理格式：
proxies = {"协议","协议：//用户名：密码@IP：端口号"}

{'http': 'http://183.47.237.251:80', 'https': 'https://183.47.237.251:80'} 可用
'''

import requests

url = "http://httpbin.org/get"
proxies ={
    "http":"http://183.47.237.251:80",
    "https":"http://183.47.237.251:80"
}
header ={
    "User-Agent":"Mozilla/5.0"
}

html = requests.get(url=url,headers=header,proxies=proxies,timeout=5).text
print(html)